﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="ListAlbums.aspx.cs" Inherits="Admin_ListAccounts" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="postedit" class="clearfix">
        <h2 class="ico_mug">
            List Album
        </h2>
        <asp:GridView ID="grdListAlbum" CssClass="yui" runat="server" 
            AutoGenerateColumns="False" AllowPaging="True" 
            onpageindexchanging="grdListAlbum_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="IDAlbum" HeaderText="ID Album" />
                <asp:BoundField DataField="AlbumName" HeaderText="Name Album" />
                <asp:BoundField DataField="DateCreate" HeaderText="Date Create" />
                <asp:HyperLinkField DataNavigateUrlFields="IDAcc" DataTextField="Name" HeaderText="User"
                    DataNavigateUrlFormatString="~/Admin/Account.aspx?IDAcc={0}" />
                <asp:TemplateField HeaderText="View Images">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnUpdate" runat="server" ToolTip="View Images" CommandName="Confirm"
                            OnClick="btnUpdate_Click" CommandArgument='<%# Eval("IDAlbum") %>' ImageUrl="~/Admin/img/viewAlbum.png" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="clsGrdHeader" />
            <RowStyle CssClass="clsGrdRow" />
            <AlternatingRowStyle CssClass="clsGrdAlternateRow" />
            <PagerStyle CssClass="clsPage" />
        </asp:GridView>
        <asp:Panel ID="pnImage" runat="server">
            <div id="main_panel_container">
                <div id="shortcuts" class="clearfix">
                    <h2 class="ico_mug">
                        Images of Album <asp:Label ID="lblAlbumName" runat="server" style="color:Red; font-weight:bold"></asp:Label></h2>
                    <ul>
                        <asp:Repeater ID="reImage" runat="server">
                            <ItemTemplate>
                                <li class="first_li"><a href="ListAlbums.aspx" style="border:0px">
                                    <asp:Image ID="imga" runat="server" ImageUrl='<%#"~/Admin/img/Images/" + Eval("ImageURL") %>'
                                        Style="height: 55px; width: 57px" />
                                    <%#Eval("ImageURL")%></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <%--<li><a href="">
                            <img src="img/gallery.jpg" alt="Image" /><span>Image</span></a></li>
                        <li><a href="ListLayout.aspx">
                            <img src="img/statistic.jpg" alt="statistics" /><span>Layout</span></a></li>
                        <li><a href="ListUserGuide.aspx">
                            <img src="img/ftp.jpg" alt="FTP" /><span>User Guide</span></a></li>
                        <li><a href="ListAccounts.aspx">
                            <img src="img/users.jpg" alt="Users" /><span>Accounts</span></a></li>
                        <li><a href="">
                            <img src="img/comments.jpg" alt="Comments" /><span>Comments</span></a></li>
                        <li><a href="">
                            <img src="img/security.jpg" alt="Security" /><span>Security</span></a></li>--%>
                    </ul>
                </div>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
